package com.itmuch.cloud.study.service;

import com.itmuch.cloud.study.entity.Transport;
import com.itmuch.cloud.study.entity.TransportDetail;

import javax.transaction.Transactional;
import java.util.List;
import java.util.Map;

public interface TransportService {

//保存订单和明细
    @Transactional
	public String saveOrderwitEntity(Transport transport,List<TransportDetail> transportDetails);


	public List<Transport> findAll();


	//通过delivery查询订单
	List<Transport> findByDelivery(String delivery);

	//查询该delivery下的物料中的已经扫描的二维码的信息
	List<Map<String, Object>> findByDeliveryAndMaterial(String delivery,String material,String barcodes);
	
//扫描接口
	@Transactional
	String saveDeliverySkubarcode(String delivery, String barCode);
	//删除重扫接口
	@Transactional
	String deleteDeliverySkuBarcode(String delivery, String material,String barcodes);
	//查询delivery下已经扫描的物料信息
	String findDateInfoByDelivery(String delivery);
//根据id删除一条订单
    @Transactional
    boolean deleteTransportByid(String id);

//打印信息
    String findPrintSkuLabelInfo(String deliveryStart, String deliveryEnd, String barcode, String materials, String user);
//结单
    public String getPrintOrder(String delivery,boolean f);
//查询
    String find(String createDateStart, String createDateEnd, String deliveryStart, String deliveryEnd, String plantCode, String scanDateStart, String scanDateEnd);

    String printLabels(String substring, String barcode, String materials, String user);

   /* //物料没有扫完，提前结单
    String delMaterailToPrintOrder(String delivery);*/
}
